Avoid copying lists during draw
authorMatthias Clasen <mclasen@redhat.com>
Sun, 27 Sep 2015 04:32:40 +0000 (00:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 27 Sep 2015 04:35:12 +0000 (00:35 -0400)
commitff3cb8ac7168da084e49203e835b11dfe751aad8
tree28ca150df5eb177ecd24789eb6b73f4a79213dd7
parent001ba79dd61ece16696fed3b8dc0f1dc4a940860
Avoid copying lists during draw

We can use gdk_window_peek_children here, instead of copying
the list. Note that we preserve the bottom-to-top ordering by
iterating the list from the end.
gdk_window_get_children_with_user_data was doing a list
reversal while filtering the list.
gtk/gtkwidget.c